<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Admin_Based extends Controller
{

    public function before()
    {
        
        $user = User::instance()->logged_in();

        if (!$user)
        {
             $this->request->redirect(Url::base().'admin/login/login?redirect='.$this->request->uri());
        }

      
    }
}
